﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class web_pages_xemtinnhan : System.Web.UI.Page
{
    public Common comm = new Common();
    public DataTable dtt_tn;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["NTDuser"] == null)
        {
            Response.Write("<h4> Bạn phải đăng nhập để xem tin nhắn này! </h4>");
        }
        else
        {
            string _matn = Request.QueryString["id"];
            dtt_tn = comm.getDataTable("select * from Hethong_tin_nhan where id='" + _matn + "'");
            comm.execNoneQuery("update hethong_tin_nhan set da_doc = 1 where id ='" + _matn + "'");
        }
        
    }
}
